import request from '@/utils/request'

export function fetchList(query) {
  return request({
    url: '/park/list',
    method: 'post',
    data: query
  })
}

export function deletePark(query) {
  return request({
    url: '/park/deletePark',
    method: 'post',
    data: query
  })
}

export function createPark(query) {
  return request({
    url: '/park/createPark',
    method: 'post',
    data: query
  })
}

export function updatePark(query) {
  return request({
    url: '/park/updatePark',
    method: 'post',
    data: query
  })
}

export function parkDetail(id) {
  return request({
    url: '/park/' + id,
    method: 'get',
  })
}